package cn.jobstart.spider.downloader.request;

import cn.jobstart.common.StringUtil;
import us.codecraft.webmagic.Request;

/**
 * @author sunke
 * @version 1.0
 * @Description
 * @date 2023-10-18 15:32
 */
public class HtmlRequest extends Request {

    private String url;

    public HtmlRequest(String url) {
        super(url);
        this.url = url;

    }


    public String getHtml() {
        return StringUtil.toString(getExtra("html"));
    }

    public HtmlRequest setHtml(String html) {
        putExtra("html", html);
        return this;
    }

}
